package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 群组对象 chat_group
 * 
 * @author ruoyi
 * @date 2025-08-30
 */
public class ChatGroup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 群组ID */
    private Long groupId;

    /** 群名称 */
    @Excel(name = "群名称")
    private String groupName;

    /** 群头像 */
    @Excel(name = "群头像")
    private String groupAvatar;

    /** 群主ID */
    @Excel(name = "群主ID")
    private Long ownerId;

    /** 群公告 */
    private String announcement;

    /** 最大成员数 */
    @Excel(name = "最大成员数")
    private Long maxMembers;

    /** 是否全员禁言（0否 1是） */
    @Excel(name = "是否全员禁言", readConverterExp = "0=否,1=是")
    private String isBanAll;

    /** 群状态 */
    @Excel(name = "群状态")
    private String status;

    /** 删除标志 */
    @Excel(name = "删除标志")
    private String delFlag;

    public void setGroupId(Long groupId) 
    {
        this.groupId = groupId;
    }

    public Long getGroupId() 
    {
        return groupId;
    }

    public void setGroupName(String groupName) 
    {
        this.groupName = groupName;
    }

    public String getGroupName() 
    {
        return groupName;
    }

    public void setGroupAvatar(String groupAvatar) 
    {
        this.groupAvatar = groupAvatar;
    }

    public String getGroupAvatar() 
    {
        return groupAvatar;
    }

    public void setOwnerId(Long ownerId) 
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId() 
    {
        return ownerId;
    }

    public void setAnnouncement(String announcement) 
    {
        this.announcement = announcement;
    }

    public String getAnnouncement() 
    {
        return announcement;
    }

    public void setMaxMembers(Long maxMembers) 
    {
        this.maxMembers = maxMembers;
    }

    public Long getMaxMembers() 
    {
        return maxMembers;
    }

    public void setIsBanAll(String isBanAll) 
    {
        this.isBanAll = isBanAll;
    }

    public String getIsBanAll() 
    {
        return isBanAll;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("groupId", getGroupId())
            .append("groupName", getGroupName())
            .append("groupAvatar", getGroupAvatar())
            .append("ownerId", getOwnerId())
            .append("announcement", getAnnouncement())
            .append("maxMembers", getMaxMembers())
            .append("isBanAll", getIsBanAll())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
